package com.woniuxy.entity;

import java.util.List;

/**
 * @author 佘赛飞
 * @create 2021 -10 -03 12:15 PM
 */
public class Province {
    private Integer pid;
    private String pname;
    //对多：一个省对应多个城市
    private List<City>ctiys;

    public Province() {
    }

    public Province(Integer pid, String pname, List<City> ctiys) {
        this.pid = pid;
        this.pname = pname;
        this.ctiys = ctiys;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public void setCtiys(List<City> ctiys) {
        this.ctiys = ctiys;
    }

    public Integer getPid() {
        return pid;
    }

    public String getPname() {
        return pname;
    }

    public List<City> getCtiys() {
        return ctiys;
    }

    @Override
    public String toString() {
        return "Province{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", ctiys=" + ctiys +
                '}';
    }
}
